<script type="text/javascript">
//页面加载时执行
$(function(){
	$.get("applicationSingle/getCardInfo",function(data){
		var contentb="<option value='' selected>请选择</option>";
		var contentc="<option value='' selected>请选择</option>";
		var i;
		$(data).each(function(n,item){
			for(i=0;i<item.cdProDefinitions.length;i++){
				
				contentb+="<option value="+item.cdProDefinitions[i].cardpCode+">"
				+item.cdProDefinitions[i].cardpName+"</option>"
			}
			$("#cardCodeByQueryCert").html(contentb);
		});
	},"json");
	$.post("tellerManage/getpaperAndBranch",function(json){
		 var contentb="<option value='' >请选择</option>";
		 $(json).each(function(n,item){
			for(i=0;i<item.branchs.length;i++){
				contentb+="<option value="+item.branchs[i].orgName+">"
				+item.branchs[i].orgName+"</option>"
			};
			$("select[name='branch']").html(contentb);
		 });
		
	 },"json")
	$.ajax({
		type: 'POST',
		url:"queryInfo/queryCert",
		dataType:"json",
		cache: false,
		success: queryCert,//回调函数
		error: DWZ.ajaxError
	});
	
});

function openCert(a){
	var parm=$(a).text();
	var param =$(a).children().val();

		$.ajax({
	        url:"queryInfo/openCert",
	        data: {"param":param},
	        dataType: "json",
	    	type:"post",
	    	success:printViewPageAjaxDone
		})
		
	
	//return false;
}
</script>
<div class="pageHeader ">
	<form id="pagerForm" method="post" action="queryInfo/queryCert" class="pageForm required-validate" onsubmit="return validateCallback(this,queryCert);">
		<input type="hidden" name="pageNum" value="" /> 
		<input type="hidden" name="numPerPage" value="" />
		<!-- <input type="hidden" name="pageCount" value="" /> -->
		<div class="searchBar">
			<!-- <table class="searchContent">
			<tr>
				<td style="text-align:left"><label>卡产品：</label></td>
				<td style="text-align:left"><select id="cardCodeByQueryCert" name="cardpCode" >
			
				</select></td>
			
				<td style="text-align:left"><label>持卡人：</label></td>
				<td><input  name="name" class="" type="text" size="30" /></td>
			</tr>
			<tr>
				<td style="text-align:left"><label>网点：</label></td>
				<td><input  name="branch" class="" type="text" size="30" /></td>
			
				<td style="text-align:left"><label>柜员：</label></td>
				<td><input  name="crtOperator" class="" type="text" size="30" /></td>
			</tr>
			<tr>
				<td><label>办理日期(起)：</label></td>
				<td><input  name="crtDateStart" class="date" type="text" size="30"  /></td>
			
				<td><label>办理日期(止)：</label></td>
				<td><input  name="crtDateEnd" class="date" type="text" size="30" /></td>
			</tr>
			<tr>
				<td style="text-align:left"><label>单位名称：</label></td>
				<td><input  name="corpName" class="" type="text" size="30" /></td>
			
				<td style="text-align:left"><label>代理人：</label></td>
				<td><input  name="agentName" class="" type="text" size="30" /></td>
			</tr>
			<tr>
				<td style="text-align:left"><label>业务类型：</label></td>
				<td style="text-align:left"><select  name="certType" class=""  >
					<option value="" >请选择
					<option value="1">单笔申请
					<option value="2">批量申请
					<option value="6">正式挂失
					<option value="9">退卡登记
					<option value="11">补卡申请
					<option value="12">换卡申请
					<option value="3">单笔发卡
					<option value="5">批量发卡
					<option value="8">现场退卡退款
					<option value="10">补卡发卡
					<option value="14">解挂
					<option value="1601">电子钱包充值
					<option value="1602">电子存折充值
					<option value="15">退款登记
				</select></td>
			</tr>
			</table> -->
		<div class="row" style="padding: 0 10px;">
		<div class="col-md-4 col-sm-12" >
			<p >
			<label>卡产品：</label>
			<select id="cardCodeByQueryCert" name="cardpCode" ></select>
		</div>
		<div class="col-md-4 col-sm-12" >
			<p >
			<label>持卡人姓名：</label>
			 <input  name="name" class="validName" type="text" size="30" />
			</p>
		</div>
		<div class="col-md-4 col-sm-12" >
			<p >
			<label>办理网点：</label>
			<!-- <input  name="branch" class="" type="text" size="30" /> -->
			<select  name="branch" ></select>
			</p>
		</div>
		</div>
		<div class="row" style="padding: 0 10px;">
		<div class="col-md-4 col-sm-12" >
			<p >
			<label>办理柜员：</label>
			<input  name="crtOperator" class="" type="text" size="30" />
		</p>
		</div>
		<div class="col-md-4 col-sm-12" >
			<p >
			<label>办理日期(起)：</label>
			 <input  name="crtDateStart" class="date validDateFrom" type="text" size="30"  />
			</p>
		</div>
		<div class="col-md-4 col-sm-12" >
			<p >
			<label>办理日期(止)：</label>
			<input  name="crtDateEnd" class="date validDateTo" type="text" size="30" />
			</p>
		</div>
		</div>
		<div class="row" style="padding: 0 10px;">
		<div class="col-md-4 col-sm-12" >
			<p >
			<label>单位名称：</label>
			<input  name="corpName" class="" type="text" size="30" />
		</p>
		</div>
		<div class="col-md-4 col-sm-12" >
			<p >
			<label>代理人姓名：</label>
			 <input  name="agentName" class="validName" type="text" size="30" />
			</p>
		</div>
		<div class="col-md-4 col-sm-12" >
			<p >
			<label>业务类型：</label>
			     <select  name="certType" class=""  >
					<option value="" >请选择
					<option value="1">单笔申请
					<option value="2">批量申请
					<option value="6">正式挂失
					<option value="9">退卡登记
					<option value="11">补卡申请
					<option value="12">换卡申请
					<option value="3">出库配送
					<option value="4">单笔发卡
					<option value="5">批量发卡
					<option value="8">现场退卡退款
					<option value="10">补卡发卡
					<option value="14">解挂
					<option value="1501">联名卡退卡退款
					<option value="1601">电子钱包充值
					<option value="1602">电子存折充值
					<option value="15">退款登记
				</select>
			</p>
		</div>
		</div>
		<div class="subBar">
			<ul> 
				<li>
				<div class="buttonActive" ><div class="buttonContent" ><button type="submit" onclick="initCurrentPage()">查询</button></div></div>
				</li>
			</ul>
		</div>
		</div>
	</form>	
</div>

<form method="post" action="" class="pageForm required-validate" onsubmit="return validateCallback(this,refresh);" >
	 <div class="pageContent">
	 <div id="ByQueryCert">
		<table class="table" width="100%" layoutH="218">
			<thead>
<!-- 	单据号、办理日期、业务类型、卡产品、单位名称、持卡人姓名、代理人姓名、办理网点、办理柜员、交易名称-->
				<tr align="center">
					<th width="20%">凭证号</th>
					<th width="10%">卡产品</th>
					<th width="8%">持卡人姓名</th>
					<th width="10%">代理人姓名</th>
					<th width="8%">交易名称</th>
					<th width="10%">单位名称</th>
					<th width="8%">办理日期</th>
					<th width="10%">办理网点</th>
					<th width="8%">办理柜员</th>
					<th width="8%">业务类型</th>
				</tr>
			</thead>
			<tbody id="tbodyByQueryCert">
						
			</tbody>
		</table>
		</div>
	<!--  <div class="panelBar">
		<div class="pages">
			<span>显示</span>
			<select id="numPerPageByQueryCert" name="numPerPage" onchange="paging(this,$('#queryCert'),queryCert)">
				<option value="20">20</option>
				<option value="30">30</option>
				<option value="50">50</option>
				<option value="100">100</option>
			</select>
			<span id="totalCountByQueryCert" ></span>
		</div>
			<div id="paginationByQueryCert" class="pagination1"  ></div>
	</div> -->
	<div class="panelBar">
		<div class="pages">
			<span>显示</span>
			<select class="combox" name="numPerPage" onchange="navTabPageBreak({numPerPage:this.value},'tbodyByQueryCert',queryCert)">
				<option value="20">20</option>
				<option value="50">50</option>
				<option value="100">100</option>
				<option value="200">200</option>
			</select>
			<span id="totalCountByQueryCert">条，共${totalCount}条</span>
		</div>

		<div callback='queryCert' id="paginationByQueryCert" rel="tbodyByQueryCert" class="pagination" targetType="navTab" totalCount="200" numPerPage="5" pageNumShown="5" currentPage="1"></div>

	</div>
</div>
	</form>
	

